import Request from '@/utils/request.js';


export const portalLoginUserGet = () => {
    return Request({
        url: `/portal/auth/loginUser`,
        method: 'get'
    })
}

export const portalDoLogin = (data) => {
    return Request({
        url: `/portal/auth/doLogin`,
        method: 'post',
        data
    })
}

export const portalDoRegister = (data) => {
    return Request({
        url: `/portal/auth/doRegister`,
        method: 'post',
        data
    })
}

export const isLogin = () => {
    return Request({
        url: `/portal/auth/isLogin`,
        method: 'get',
    })
}
